import {
	http
} from '@/js_sdk/luch-request/index.js' // 全局挂载引入，配置相关在该index.js文件里修改 

import config from "@/config/index.config.js";
// 手机号授权登录  
export const loginApplet = (data) => http.post('loginApplet', data);
// 微信授权  
export const getOpenid = (data) => http.post('getOpenid', data);
// 获取药店列表 
export const getPatientsShop = (params) => http.get('external/shopList', {
	params
});
// 获取视频列表 
export const getVideoContent = (params) => http.get('videoContent/list', {
	params
});
// 新增视频
export const addVideoContent = (data) => http.post('videoContent/addVideo', data);
// 更新用户信息  
export const updateUser = (data) => http.post('videoContent/updateUser', data);
// 获取用户信息
export const getUserInfo = (params) => http.get('videoContent/queryUser', {
	params
});

// 视频点赞/收藏  
export const videoOperate = (data) => http.post('videoContent/videoOperate', data);
// 取消点赞/收藏  
export const cancelVideoOperate = (data) => http.post('videoContent/cancelVideoOperate', data);
// 视频评论/回复  
export const setVideoComment = (data) => http.post('videoContent/videoComment', data);
// 获取评论/回复列表
export const getCommentList = (params) => http.get('videoContent/getCommentList', {
	params
});
// 获取状态
export const getStatus = (params) => http.get('my/getStatus', {
	params
});
// 获取我的作品收藏点赞
export const getVideoList = (params) => http.get('my/videoList', {
	params
}); 